package com.fantasy.easy.biz.controller;

import com.fantasy.easy.biz.domain.vo.VisualVO;
import com.fantasy.easy.biz.service.BizBaseService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description TODO
 * @Author sdehua-帅德华
 * @Email sdhstart@qq.com
 * @Date 2022/6/27 16:04
 * @Version 1.0
 **/
@RestController
@RequestMapping("/visual")
public class VisualMapController {

    @Resource
    BizBaseService bizBaseService;

    @GetMapping(value = "/collaList")
    public List<VisualVO> getCollaList(){
        return bizBaseService. getValueAndNameWithColla();
    }

    @GetMapping(value = "/creditList")
    public List<VisualVO> getCreditList(){
        return bizBaseService. getValueAndNameWithCredit();
    }

}
